package com.tongzhan.entity.qiaotai;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tongzhan.annotation.ColumnDoc;
import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.annotation.TableDoc;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 人员信息
 * Create By htmic on 2020/7/29
 */
@TableDoc(table = "t_personnel",desc = "人员信息")
@Data
@Document(collection = "t_personnel")
public class Personnel extends BaseModel {

    @ColumnDoc("主键id")
    @PrimaryKey
    private String id;

    @ColumnDoc("人员姓名")
    private String name;//人员姓名

    @ColumnDoc("城镇id")
    private String townTypeId;//城镇id

    @ColumnDoc("城镇名称")
    private String townTypeName;//城镇名称

    @ColumnDoc("人员身份证号")
    private String idcard;//人员身份证号

    @ColumnDoc("人员类型id")
    private Integer typeId;//人员类型id(1:留学生、2:华人华侨、3:港澳台同胞)

    @ColumnDoc("")
    private String typeIdName;

    @ColumnDoc("上报人id")
    private String addUserId;//上报人id

    @ColumnDoc("上报人名称")
    private String addUserName;//上报人名称

    @ColumnDoc("添加时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addTime;//添加时间

    @ColumnDoc("是否删除")
    private Integer is_del;//是否删除

    @ColumnDoc("街道code")
    private String streetCode;

    @ColumnDoc("村社区")
    private String villageCode;//村社区
}
